/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * CreateNewPlaneDialog.java
 *
 * Created on 19.10.2011, 20:47:08
 */

package de.hdm.itproject.views;

import java.awt.BorderLayout;

/**
 *
 * @author tim
 */
public class CreateNewPlaneDialog extends javax.swing.JDialog {

    /** Creates new form CreateNewPlaneDialog
     * @param parent
     * @param modal
     */
    public CreateNewPlaneDialog(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
    }

    CreateNewPlaneDialog(java.awt.Frame parent) {
        super(parent);
        initComponents();
        this.setVisible(true);
                throw new UnsupportedOperationException("Not yet implemented");
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        btnCreateNewPlaneDialogOk = new javax.swing.JButton();
        btnCreateNewPlaneDialogCancel = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();
        jComboBox1 = new javax.swing.JComboBox();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setAlwaysOnTop(true);
        setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        setIconImage(null);
        setModal(true);
        setName("Form"); // NOI18N

        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(de.hdm.itproject.App.class).getContext().getResourceMap(CreateNewPlaneDialog.class);
        btnCreateNewPlaneDialogOk.setText(resourceMap.getString("btnCreateNewPlaneDialogOk.text")); // NOI18N
        btnCreateNewPlaneDialogOk.setName("btnCreateNewPlaneDialogOk"); // NOI18N
        btnCreateNewPlaneDialogOk.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCreateNewPlaneDialogOkActionPerformed(evt);
            }
        });

        btnCreateNewPlaneDialogCancel.setText(resourceMap.getString("btnCreateNewPlaneDialogCancel.text")); // NOI18N
        btnCreateNewPlaneDialogCancel.setName("btnCreateNewPlaneDialogCancel"); // NOI18N
        btnCreateNewPlaneDialogCancel.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCreateNewPlaneDialogCancelActionPerformed(evt);
            }
        });

        jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
        jLabel1.setName("jLabel1"); // NOI18N

        jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        jComboBox1.setName("jComboBox1"); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(208, Short.MAX_VALUE)
                .addComponent(btnCreateNewPlaneDialogCancel)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(btnCreateNewPlaneDialogOk)
                .addContainerGap())
            .addGroup(layout.createSequentialGroup()
                .addGap(66, 66, 66)
                .addComponent(jLabel1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 107, Short.MAX_VALUE)
                .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(62, 62, 62))
        );

        layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {btnCreateNewPlaneDialogCancel, btnCreateNewPlaneDialogOk});

        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGap(36, 36, 36)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1)
                    .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 194, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnCreateNewPlaneDialogOk)
                    .addComponent(btnCreateNewPlaneDialogCancel))
                .addContainerGap())
        );

        layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {btnCreateNewPlaneDialogCancel, btnCreateNewPlaneDialogOk});

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void btnCreateNewPlaneDialogOkActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCreateNewPlaneDialogOkActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_btnCreateNewPlaneDialogOkActionPerformed

    private void btnCreateNewPlaneDialogCancelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCreateNewPlaneDialogCancelActionPerformed
        // TODO add your handling code here:
        dispose();
    }//GEN-LAST:event_btnCreateNewPlaneDialogCancelActionPerformed

    /**
    * @param args the command line arguments
    */

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnCreateNewPlaneDialogCancel;
    private javax.swing.JButton btnCreateNewPlaneDialogOk;
    private javax.swing.JComboBox jComboBox1;
    private javax.swing.JLabel jLabel1;
    // End of variables declaration//GEN-END:variables

}
